home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / CMMComponent.a < prev    next >
Text File  |  1996-05-01  |  8KB  |  315 lines

  1. ;
  2. ;    File:        CMMComponent.a
  3. ;
  4. ;    Contains:    ColorSync CMM Components
  5. ;
  6. ;    Version:    Technology:    ColorSync 2.0
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__CMMCOMPONENT__') = 'UNDEFINED' THEN
  19. __CMMCOMPONENT__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  25.     include 'Quickdraw.a'
  26.     ENDIF
  27.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  28.     include 'Components.a'
  29.     ENDIF
  30.     IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
  31.     include 'CMApplication.a'
  32.     ENDIF
  33.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  34.  
  35. CMMInterfaceVersion                EQU        1
  36. ;  Component function selectors 
  37. ;  Required 
  38.  
  39. kCMMInit                        EQU        0
  40. kNCMMInit                        EQU        6
  41. kCMMMatchColors                    EQU        1
  42. kCMMCheckColors                    EQU        2
  43. ;  Optional 
  44.  
  45. kCMMValidateProfile                EQU        8
  46. kCMMFlattenProfile                EQU        14
  47. kCMMUnflattenProfile            EQU        15
  48. kCMMMatchBitmap                    EQU        9
  49. kCMMCheckBitmap                    EQU        10
  50. kCMMMatchPixMap                    EQU        3
  51. kCMMCheckPixMap                    EQU        4
  52. kCMMConcatenateProfiles            EQU        5
  53. kCMMConcatInit                    EQU        7
  54. kCMMNewLinkProfile                EQU        16
  55. kCMMGetPS2ColorSpace            EQU        11
  56. kCMMGetPS2ColorRenderingIntent    EQU        12
  57. kCMMGetPS2ColorRendering        EQU        13
  58. kCMMGetPS2ColorRenderingVMSize    EQU        17
  59. ;
  60. ; pascal CMError NCMInit(ComponentInstance CMSession, CMProfileRef srcProfile, CMProfileRef dstProfile)
  61. ;
  62.     IF ¨ GENERATINGCFM THEN
  63.         Macro
  64.         _NCMInit
  65.             move.l              #$00080006,-(sp)
  66.             moveq               #0,D0
  67.             dc.w                $A82A
  68.         EndM
  69.     ELSE
  70.         IMPORT_CFM_FUNCTION NCMInit
  71.     ENDIF
  72.  
  73. ;
  74. ; pascal CMError CMInit(ComponentInstance CMSession, CMProfileHandle srcProfile, CMProfileHandle dstProfile)
  75. ;
  76.     IF ¨ GENERATINGCFM THEN
  77.         Macro
  78.         _CMInit
  79.             move.l              #$00080000,-(sp)
  80.             moveq               #0,D0
  81.             dc.w                $A82A
  82.         EndM
  83.     ELSE
  84.         IMPORT_CFM_FUNCTION CMInit
  85.     ENDIF
  86.  
  87. ;
  88. ; pascal CMError CMMatchColors(ComponentInstance CMSession, CMColor *myColors, unsigned long count)
  89. ;
  90.     IF ¨ GENERATINGCFM THEN
  91.         Macro
  92.         _CMMatchColors
  93.             move.l              #$00080001,-(sp)
  94.             moveq               #0,D0
  95.             dc.w                $A82A
  96.         EndM
  97.     ELSE
  98.         IMPORT_CFM_FUNCTION CMMatchColors
  99.     ENDIF
  100.  
  101. ;
  102. ; pascal CMError CMCheckColors(ComponentInstance CMSession, CMColor *myColors, unsigned long count, long *result)
  103. ;
  104.     IF ¨ GENERATINGCFM THEN
  105.         Macro
  106.         _CMCheckColors
  107.             move.l              #$000C0002,-(sp)
  108.             moveq               #0,D0
  109.             dc.w                $A82A
  110.         EndM
  111.     ELSE
  112.         IMPORT_CFM_FUNCTION CMCheckColors
  113.     ENDIF
  114.  
  115. ;  Optional functions 
  116. ;
  117. ; pascal CMError CMMValidateProfile(ComponentInstance CMSession, CMProfileRef prof, Boolean *valid)
  118. ;
  119.     IF ¨ GENERATINGCFM THEN
  120.         Macro
  121.         _CMMValidateProfile
  122.             move.l              #$00080008,-(sp)
  123.             moveq               #0,D0
  124.             dc.w                $A82A
  125.         EndM
  126.     ELSE
  127.         IMPORT_CFM_FUNCTION CMMValidateProfile
  128.     ENDIF
  129.  
  130. ;
  131. ; pascal CMError CMMFlattenProfile(ComponentInstance CMSession, CMProfileRef prof, unsigned long flags, CMFlattenUPP proc, void *refCon)
  132. ;
  133.     IF ¨ GENERATINGCFM THEN
  134.         Macro
  135.         _CMMFlattenProfile
  136.             move.l              #$0010000E,-(sp)
  137.             moveq               #0,D0
  138.             dc.w                $A82A
  139.         EndM
  140.     ELSE
  141.         IMPORT_CFM_FUNCTION CMMFlattenProfile
  142.     ENDIF
  143.  
  144. ;
  145. ; pascal CMError CMMUnflattenProfile(ComponentInstance CMSession, FSSpec *resultFileSpec, CMFlattenUPP proc, void *refCon)
  146. ;
  147.     IF ¨ GENERATINGCFM THEN
  148.         Macro
  149.         _CMMUnflattenProfile
  150.             move.l              #$000C000F,-(sp)
  151.             moveq               #0,D0
  152.             dc.w                $A82A
  153.         EndM
  154.     ELSE
  155.         IMPORT_CFM_FUNCTION CMMUnflattenProfile
  156.     ENDIF
  157.  
  158. ;
  159. ; pascal CMError CMMatchBitmap(ComponentInstance CMSession, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *matchedBitmap)
  160. ;
  161.     IF ¨ GENERATINGCFM THEN
  162.         Macro
  163.         _CMMatchBitmap
  164.             move.l              #$00100009,-(sp)
  165.             moveq               #0,D0
  166.             dc.w                $A82A
  167.         EndM
  168.     ELSE
  169.         IMPORT_CFM_FUNCTION CMMatchBitmap
  170.     ENDIF
  171.  
  172. ;
  173. ; pascal CMError CMCheckBitmap(ComponentInstance CMSession, const CMBitmap *bitmap, CMBitmapCallBackUPP progressProc, void *refCon, CMBitmap *resultBitmap)
  174. ;
  175.     IF ¨ GENERATINGCFM THEN
  176.         Macro
  177.         _CMCheckBitmap
  178.             move.l              #$0010000A,-(sp)
  179.             moveq               #0,D0
  180.             dc.w                $A82A
  181.         EndM
  182.     ELSE
  183.         IMPORT_CFM_FUNCTION CMCheckBitmap
  184.     ENDIF
  185.  
  186. ;
  187. ; pascal CMError CMMatchPixMap(ComponentInstance CMSession, PixMap *myPixMap, CMBitmapCallBackUPP progressProc, void *refCon)
  188. ;
  189.     IF ¨ GENERATINGCFM THEN
  190.         Macro
  191.         _CMMatchPixMap
  192.             move.l              #$000C0003,-(sp)
  193.             moveq               #0,D0
  194.             dc.w                $A82A
  195.         EndM
  196.     ELSE
  197.         IMPORT_CFM_FUNCTION CMMatchPixMap
  198.     ENDIF
  199.  
  200. ;
  201. ; pascal CMError CMCheckPixMap(ComponentInstance CMSession, const PixMap *myPixMap, CMBitmapCallBackUPP progressProc, BitMap *myBitMap, void *refCon)
  202. ;
  203.     IF ¨ GENERATINGCFM THEN
  204.         Macro
  205.         _CMCheckPixMap
  206.             move.l              #$00100004,-(sp)
  207.             moveq               #0,D0
  208.             dc.w                $A82A
  209.         EndM
  210.     ELSE
  211.         IMPORT_CFM_FUNCTION CMCheckPixMap
  212.     ENDIF
  213.  
  214. ;
  215. ; pascal CMError CMConcatInit(ComponentInstance CMSession, CMConcatProfileSet *profileSet)
  216. ;
  217.     IF ¨ GENERATINGCFM THEN
  218.         Macro
  219.         _CMConcatInit
  220.             move.l              #$00040007,-(sp)
  221.             moveq               #0,D0
  222.             dc.w                $A82A
  223.         EndM
  224.     ELSE
  225.         IMPORT_CFM_FUNCTION CMConcatInit
  226.     ENDIF
  227.  
  228. ;
  229. ; pascal CMError CMNewLinkProfile(ComponentInstance CMSession, CMProfileRef *prof, const CMProfileLocation *targetLocation, CMConcatProfileSet *profileSet)
  230. ;
  231.     IF ¨ GENERATINGCFM THEN
  232.         Macro
  233.         _CMNewLinkProfile
  234.             move.l              #$000C0010,-(sp)
  235.             moveq               #0,D0
  236.             dc.w                $A82A
  237.         EndM
  238.     ELSE
  239.         IMPORT_CFM_FUNCTION CMNewLinkProfile
  240.     ENDIF
  241.  
  242. ;
  243. ; pascal CMError CMMGetPS2ColorSpace(ComponentInstance CMSession, CMProfileRef srcProf, unsigned long flags, CMFlattenUPP proc, void *refCon)
  244. ;
  245.     IF ¨ GENERATINGCFM THEN
  246.         Macro
  247.         _CMMGetPS2ColorSpace
  248.             move.l              #$0010000B,-(sp)
  249.             moveq               #0,D0
  250.             dc.w                $A82A
  251.         EndM
  252.     ELSE
  253.         IMPORT_CFM_FUNCTION CMMGetPS2ColorSpace
  254.     ENDIF
  255.  
  256. ;
  257. ; pascal CMError CMMGetPS2ColorRenderingIntent(ComponentInstance CMSession, CMProfileRef srcProf, unsigned long flags, CMFlattenUPP proc, void *refCon)
  258. ;
  259.     IF ¨ GENERATINGCFM THEN
  260.         Macro
  261.         _CMMGetPS2ColorRenderingIntent
  262.             move.l              #$0010000C,-(sp)
  263.             moveq               #0,D0
  264.             dc.w                $A82A
  265.         EndM
  266.     ELSE
  267.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRenderingIntent
  268.     ENDIF
  269.  
  270. ;
  271. ; pascal CMError CMMGetPS2ColorRendering(ComponentInstance CMSession, CMProfileRef srcProf, CMProfileRef dstProf, unsigned long flags, CMFlattenUPP proc, void *refCon)
  272. ;
  273.     IF ¨ GENERATINGCFM THEN
  274.         Macro
  275.         _CMMGetPS2ColorRendering
  276.             move.l              #$0014000D,-(sp)
  277.             moveq               #0,D0
  278.             dc.w                $A82A
  279.         EndM
  280.     ELSE
  281.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRendering
  282.     ENDIF
  283.  
  284. ;
  285. ; pascal CMError CMMGetPS2ColorRenderingVMSize(ComponentInstance CMSession, CMProfileRef srcProf, CMProfileRef dstProf, unsigned long *vmSize)
  286. ;
  287.     IF ¨ GENERATINGCFM THEN
  288.         Macro
  289.         _CMMGetPS2ColorRenderingVMSize
  290.             move.l              #$000C0011,-(sp)
  291.             moveq               #0,D0
  292.             dc.w                $A82A
  293.         EndM
  294.     ELSE
  295.         IMPORT_CFM_FUNCTION CMMGetPS2ColorRenderingVMSize
  296.     ENDIF
  297.  
  298. ;
  299. ; pascal CMError CMConcatenateProfiles(ComponentInstance CMSession, CMProfileHandle thru, CMProfileHandle dst, CMProfileHandle *newDst)
  300. ;
  301.     IF ¨ GENERATINGCFM THEN
  302.         Macro
  303.         _CMConcatenateProfiles
  304.             move.l              #$000C0005,-(sp)
  305.             moveq               #0,D0
  306.             dc.w                $A82A
  307.         EndM
  308.     ELSE
  309.         IMPORT_CFM_FUNCTION CMConcatenateProfiles
  310.     ENDIF
  311.  
  312.     ENDIF
  313.     ENDIF ; __CMMCOMPONENT__ 
  314.  
  315.